#include<stdio.h>
float amount(float list[],int n,float min)
{
    float sum=0;
    for(int i = 0;i<n;i++)
    {
        sum = sum + list[i];
    }
    if(sum>=min&&n>=5)
    {
        sum = sum-list[0];
    }
    return sum;
    
}
int main()
{
    int n;
    float min;
    scanf("%d %f",&n,&min);
    float list[n];
    for(int i = 0;i<n;i++)
    {
        scanf("%f",&list[i]);
    }
    printf("%.2f",amount(list,n,min));
    return 0;
}
